package com.big.order;

import com.big.common.result.Result;
import com.big.common.result.ResultCodeEnum;
import com.big.model.model.record.MerchandiseOrderRecord;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "service-order")
@Repository
public interface OrderFeignClient {

    @PostMapping("/api/order/auth/findOrder/{oid}")
    public Result findOrder(@PathVariable("oid") String oid);


    @PostMapping("/api/order/auth/updateOrder")
    public void updateOrder(@RequestParam("oId") String orderId, @RequestBody ResultCodeEnum resultCodeEnum);

    /**
     *  订单商品描述
     */
    @GetMapping("/api/order/auth/OrderRecords/{oId}")
    public Result  MerchandiseOrderRecords(@PathVariable("oId") String oId);



}
